import _http from '@/utils/http'

export default {
  messageSearch(params, loading) {
    return _http('post', {
      url: "/mnc/message/search/common",
      apiName: '消息查询-公共方法'
    }, params, loading)
  },

  newMessageCount(params, loading) {
    return _http('post', {
      url: "/mnc/message/newMessageCount",
      apiName: '获取最新消息数量'
    }, params, loading)
  },

  mySupplierList(params, loading) {
    return _http('post', {
      url: "/ums/shop/relation/mySupplierList",
      apiName: '我的供应商下拉列表'
    }, params, loading)
  },

  messageRead(params, loading) {
    return _http('post', {
      url: "/mnc/message/read",
      apiName: '消息设为已读'
    }, params, loading)
  },

  messageReadAll(params, loading) {
    return _http('post', {
      url: "/mnc/message/readAll",
      apiName: '全部消息设为已读'
    }, params, loading)
  },
}



